package com.wyz.serviceImpl;

import com.wyz.entity.Marktable;
import com.wyz.mapper.ShowGradesMapper;
import com.wyz.service.ShowGradesServicce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xiaolin
 * @data 2020/12/21-8:51
 */
@Service
public class ShowGradesServiceImpl implements ShowGradesServicce {
    @SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
    @Autowired
    ShowGradesMapper showGradeMapper;

    /**
     * 查看当天成绩
     * @return
     */
    @Override
    public List<Marktable> showGradeByToday() {
       return showGradeMapper.showGradeByToday();
    }

    /**
     * 查看所有成绩
     * @return
     */
    @Override
    public List<Marktable> showGradeInfo() {
        return showGradeMapper.showGradeInfo();
    }
}
